package cn.jianyongjie.user.mapper;

import cn.jianyongjie.user.domain.User;
import cn.jianyongjie.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jianyongjie
 * @since 2022-05-08
 */
public interface UserMapper extends BaseMapper<User> {

    /*
    * @Title: UserMapper
    * @Description: 查询手机号是否已经注册了
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/8 14:48
    * @Parameters: * @param phone
    * @Return void
    */
    User LoadByPhone(String phone);

    /*
    * @Title: UserMapper
    * @Description: 查询邮箱是否已经注册了
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/9 20:09
    * @Parameters: * @param email
    * @Return cn.jianyongjie.user.domain.User
    */
    User LoadByEmail(String email);


    /*
    * @Title: UserMapper
    * @Description: 根据logininfo的id查询数据
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/12 23:38
    * @Parameters: * @param id
    * @Return java.lang.String
    */
    User LoadByLogininfo(Long id);
}
